package com.fowo.api.model.supplier.set;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 供应商设置 导入导出辅助模型 */
@Getter
@Setter
public class SupplierSetExcelPo {

  @NotBlank(message = "供应商级别不能为空")
  @Size(max = 50, message = "供应商级别长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*供应商级别")
  private String grade;

  @NotBlank(message = "状态不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*状态")
  private String status;

  @NotBlank(message = "显示水印定位不能为空")
  @Size(max = 50, message = "显示水印定位长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*显示水印定位")
  private String watermarkLocalization;

  @NotBlank(message = "显示水印时间不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*显示水印时间")
  private String watermarkTime;

  @NotBlank(message = "显示水印员工号不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*显示水印员工号")
  private String watermarkJobNo;

  @NotBlank(message = "显示水印员工姓名不能为空")
  @Size(max = 50, message = "显示水印员工姓名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*显示水印员工姓名")
  private String watermarkJobName;

  @NotNull(message = "系统评估占比（默认50%）不能为空")
  @Size(max = 50, message = "系统评估占比（默认50%）长度不能超过20")
  @ExcelProperty(value = "*系统评估占比（默认50%）")
  private Integer systemReviewPercent;

  @NotNull(message = "人工评分占比（默认50%）不能为空")
  @Size(max = 50, message = "人工评分占比（默认50%）长度不能超过20")
  @ExcelProperty(value = "*人工评分占比（默认50%）")
  private Integer peopleReviewPercent;

  @ExcelProperty(value = "订单量")
  private Integer patrolOrderQuantity;

  @NotNull(message = "巡场人不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*巡场人")
  private String toUserName;

  @ExcelIgnore
  @ExcelProperty(value = "*巡场人")
  private List<Long> toUser;
}
